<?php
class MysqlDb extends G_DB{
    public function escape($string){
        return mysql_escape_string($string);
    }
    public function query($sql){
        return mysql_query($sql,$this->_db_con);
    }
    public function exec($sql){
        return $this->query($sql);
    }
    public function getInsertId($rs){
        return mysql_insert_id($this->_db_con);
    }
    public function getAffectedRows($rs){
        return mysql_affected_rows($this->_db_con);
    }
    public function fetch($rs){
        return mysql_fetch_assoc($rs);
    }
    public function free($rs){
        return mysql_free_result($rs);
    }
}